<template>
  <div>Profile</div>
	
	<button @click="jumpRouter">嵌套的命名路由</button>
	<button @click="jumpRouter1">忽略父组件</button>
</template>

<script setup>
	import { computed, watch } from 'vue'
	import { useRoute, useRouter } from 'vue-router'
	const router = useRouter()
	const route = useRoute()
	
	const jumpRouter = () => {
		router.push({
			name: 'user-parent',
			params: {
				username: '123'
			}
		})
	}
	const jumpRouter1 = () => {
		router.push({
			path: '/admin/users'
		})
	}
</script>